$_SERVER['HTTP_X_REQUESTED_WITH'] seemingly not available on PHP 5.1.6

Posted by kenny99 on Stack Overflow See other posts from Stack Overflow or by kenny99
Published on 2010-04-10T15:07:45Z Indexed on 2010/04/10 15:13 UTC
Read the original article Hit count: 399

Filed under:
|

Hi, I've run into a problem on a server running php 5.1.6 - the code i use to detect ajax requests isn't working as the $_SERVER['HTTP_X_REQUESTED_WITH'] variable is missing from the $_SERVER array. The same code works fine on php 5.2 and in firebug i can see the headers include X-Requested-With XMLHttpRequest. Anyone know any more about this issue and how I can get round it? Thanks in advance.

© Stack Overflow or respective owner

Related posts about php

Related posts about web-development